<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "{{%memberinfos}}".
 *
 * @property int $infoId 会员信息编号
 * @property string $memberKey 会员标识
 * @property string $realName 真实姓名
 * @property string $idCardNo 身份证号
 * @property int $ctime 创建时间
 */
class Memberinfos extends \common\models\Memberinfos
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%memberinfos}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['ctime'], 'integer'],
            [['memberKey'], 'string', 'max' => 200],
            [['realName', 'idCardNo'], 'string', 'max' => 20],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'infoId' => Yii::t('app', 'Info ID'),
            'memberKey' => Yii::t('app', 'Member Key'),
            'realName' => Yii::t('app', 'Real Name'),
            'idCardNo' => Yii::t('app', 'Id Card No'),
            'ctime' => Yii::t('app', 'Ctime'),
        ];
    }
}
